
body {
    padding: 0;
    margin: 0;
    font-size: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

*{
    moz-user-select: -moz-none;
    -moz-user-select: none;
    -o-user-select:none;
    -khtml-user-select:none;
    -webkit-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

//公共
.hide { display: node; }
.show { display: block; }

//桌面
adui-desktop {
    position: fixed;
    top: 0;left: 0;right: 0;bottom: 40px;  
    
    & adui-app-scene {
        display: flex;
        flex-flow: wrap;
        height: 100%;
        flex-direction: column;
        align-content: flex-start;   
    }
    
    & adui-box {
        display:block;
        width: 80px;
        height: 80px;
                
        &.multipe {
            background: rgba(0,0,0,0.075);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius:5px;
        }
    }   

    & adui-app {
        text-align: center;
        display: block;
        height: 100%;   
        color: white;
        overflow: hidden;
        
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;        
        
        
        &:hover {
            background-color: rgba(255, 255, 255, 0.11);  
        }
        
        & adui-app-icon {
            width: 60px;
            height: 60px;
            display: block;
            margin: auto; 
            background-size: cover;
            transform: scale(0.9);              
        } 
        
        & adui-app-title {
            text-align: center;
            line-height: 18px;
            font-size: 12px;
            display: block;
        }
                       
    }     
}

//任务栏
adui-taskbar {
    position: fixed;
    height: 40px;
    width: 100%;
    bottom: 0;  
    background-color: rgba(19, 23, 28, 0.9);
    
    & > * {
        position: absolute;
        display: inline-block;
        height: 100%;        
    }
    
    & > adui-taskbar-start {
        width:100px;
        left: 0;
        z-index: 2;        
    }
    
    & > adui-taskbar-start adui-taskbar-item {
        width: 45px;
        height: 100%;
        display: inline-block;  
        text-align: center;    
        color: white;
        
        &:hover {
            color: #d8a868;
            background-color: rgba(96, 109, 124, 0.9);
        }  
    }
    
    & i.fa{
        font-size: 16px;
        line-height: 40px;
    }
    
    & > adui-taskbar-app {
        width: calc( 100% - 250px );
        padding-left: 100px;
        padding-right: 150px;
        z-index: 1;
        display: flex;
    }    
    
    & > adui-taskbar-app adui-box {
        width: 45px;
        height: 100%;
        display: block;        
    }
    
    & > adui-taskbar-app adui-box adui-app {
        display: block;
        width: 100%;
        height: 100%;  
        
        & adui-app-icon {
            width: 100%;
            height: 100%;
            display: block;
            margin: auto; 
            background-size: cover;
            transform: scale(0.6);             
        }  
        
        &:hover {
            background-color: rgba(96, 109, 124, 0.9);
        }    
    }
    
    & > adui-taskbar-tool {
        width:150px;
        right: 0;
        z-index: 2;
        line-height: 1;
        
        & > * {
            height: 100%;
            display: inline-block;  
            text-align: center;    
            color: white;
            
            &:hover {
                background-color: rgba(96, 109, 124, 0.9);
            }              
        }
        
        & > adui-taskbar-timer {
            width: 100px;
            text-align: right;
            
            &:hover {
                background-color: inherit;
            }                
        }
        
        & > adui-taskbar-msg {
            width: 45px;
        }
    }

}

//应用
adui-app-box {
    position: fixed;
    display: block;
    width: 800px;
    height: 600px;
    min-width: 150px;
    min-height: 150px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);    
    background: rgba(255,255,255,0.3);
    box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    
    &.max {
      bottom:40px;
      left:0 !important;right:0 !important;top:0 !important;
      margin: auto;
      width: 100%;height: calc( 100% - 40px );
      position: fixed;
      transform: none;
    }
    
    &.min {
        display: none;
    }
       
    
    & adui-app-box-header {
        display: block;
        width: 100%;
        height: 35px;
        background-color: rgba(19, 23, 28, 0.9);
        cursor: move; 
        
        & adui-app-icon {
            display: block;
            position: absolute;
            left: 5px;
            top: 0;
            width: 40px;
            height: 35px;
            line-height: 35px; 
            background-size: cover;
            transform: scale(0.8);
        } 
        
        & adui-app-title {
            display: block;
            position: absolute;
            left: 50px;
            top: 0;
            width: 130px;
            height: 35px;
            line-height: 35px;
            font-size: 16px;
            color: white;
        }

        & adui-app-box-tool {
            display: block;
            position: absolute;
            right: 0;
            top: 0;
            width: 300px;
            height: 35px;
            line-height: 35px;  
            font-size: 12px;
            text-align: right;
            
            & > * {
                display: inline-block;
                width: 40px;
                color: white;
                text-align: center;
                cursor: pointer;
            } 
            
            & > adui-tool-min:hover,
            & > adui-tool-max:hover {
                background-color: rgba(96, 109, 124, 0.9);
            } 
            
            & > adui-tool-close:hover {
                background: red;
            }        
        }                         
    }
    
    & iframe {
        display: block;
        border: 0;
        width: 100%;
        height: calc(100% - 35px);
    } 

    & .loadImg {
        position: absolute;
        right: 0;
        bottom: 0;        
    }

    & fixbar {
        position: absolute; 
        display: block;
        background: none;   
        right: 50px;
        top: 50px;
    }       
}

//启动菜单
adui-taskstart {
    display: flex;
    position: fixed;
    left: 0;
    bottom: 40px;
    width: 800px;
    height: 400px;
    background: rgba(0,0,0,0.9);    
}
//任务视图
adui-taskview {
    display: flex;
    position: fixed;
    left: 0;right: 0;top: 0;bottom: 40px;
    
}




adui-contextmenu {
    position: fixed;
    width: 150px;
    height: auto;
    background-color: rgb(61, 61, 61);
    border-radius: 2px;
    z-index: 99999999;
    color: white;
    overflow: hidden;
    
    & > ul {
        margin: 0px;
        padding: 0px;
        box-shadow: 0 0 16px rgba(0, 0, 0, 0.54);
    }
    
    & > ul li {
        transition: background-color 0.5s;
        cursor: default;
        padding: 0px 1em;
        list-style: none;
        line-height: 30px;
        height: 30px;
        font-size: 10px;
        position: relative;
        
        &:hover {
           background-color: #636363; 
        }
    }    
    
    & > ul hr {
        margin: 0;
        height: 0;
        border: 0;
        border-bottom: rgba(132, 132, 132, 0.47) 1px solid;
        border-top: none;
    }
}


adui-message {
    position: fixed;
    right: 0;
    bottom: 40px;
    width: 300px;
    height: 200px;
    background-color: rgba(47, 50, 54, 0.6);    
    
    & > adui-message-header {
        display: block;
        height: 30px;
        color: white;
        line-height: 30px;
        font-size: 20px;
        padding: 5px;
        overflow: hidden;
        font-weight: bold;
    }



    
}
